﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DigitalAnts.App_Code.BAL.Components;
using System.Data;
using BAL.Entities;

namespace DigitalAnts.Admin
{
    public partial class ShowProducer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                clsProducer obj = new clsProducer();
                obj.ProducerID = Convert.ToInt32(Request["ProducerID"]);
                DataTable dt = clsProducerBAL.doProductSelectID(obj);
                txtproducer.Text = dt.Rows[0]["colProducer"].ToString();
                txtdes.Text = dt.Rows[0]["colDescription"].ToString();
                txtinsertdate.Text = dt.Rows[0]["colInsertDate"].ToString();
                string avatar = dt.Rows[0]["colAvatar"].ToString();
            }
        }

        protected void bttback_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Admin/AddProducer.aspx");
        }
    }
}